<?php
/**
 * accounting administration page
 */
function accounting_admin(){
	$s = "// TODO";
	
	return $s;
}

function accounting_acct_type_form($id){
	$form = array();
	
	$form["type"] = array(
		"#type"=>"fieldset",
		"#title"=>t("Account Type Details")
	);
	
	$form["type"]["title"] = array(
		"#type"=>"textfield",
		"#title"=>t("Title"),
		"#description"=>t("Account type title"),
		"#required"=>TRUE
	);
	
	$form["type"]["desc"] = array(
		"#type"=>"textfield",
		"#title"=>t("Description"),
		"#description"=>t("Account type description"),
		"#required"=>TRUE
	);
	
	$form["type"]["enabled"] = array(
		"#type"=>"checkbox",
		"#title"=>t("Enabled"),
		"#description"=>t("Enables the account type")
	);
	
	$form["submit"] = array(
		"#type"=>"submit",
		"#value"=>t("Save")
	);
	
	return $form;
}

function accounting_acct_type_form_validate(){
	
}

function account_acct_type_form_submit(){
	
}